<?php

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/

Route::get('/', function () {
    return view('welcome');
});
Route::get('/i', function () {
   // create a new empty image resource
$img = Image::canvas(500, 500, '#fff');
$img->text("Hello,world.this is a \n number very goods",50,50,function($font){
    $font->size(24);
    $font->align('center');
});
// send HTTP header and output image data
return  $img->response();
});

Route::get('a', "ImageController@index");
